package com.woniuxy.commentclient.client;

import com.woniuxy.commentclient.client.dto.OrderDto;
import com.woniuxy.core.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order-server")
public interface OrderFeignClient {

    @GetMapping("/order/orderInfo/findByOrderNum")
    public Result<OrderDto> findByOrderNum(@RequestParam("orderNum") String orderNum);

    @GetMapping("/order/orderInfo/updateOrderEvaluationStateByOrderNum")
    public Result updateOrderEvaluationStateByOrderNum(@RequestParam("orderNum") String orderNum,@RequestParam("orderEvaluationState")Integer orderEvaluationState);
}
